<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改污水类型')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sewageType-edit" th:object="${dict}">
          <input name="dictCode"  type="hidden"  th:field="*{dictCode}" />
          <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span>污水类型名称：</label>
            <div class="col-sm-8">
              <input class="form-control" type="text" name="dictLabel" id="dictLabel" th:field="*{dictLabel}" required>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span>污水类型标识：</label>
            <div class="col-sm-8">
              <input class="form-control" type="text" name="dictValue" id="dictValue" th:field="*{dictValue}" readonly="true">
              <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>此值由开发人员定义，添加后不可修改</span>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span>排序：</label>
            <div class="col-sm-8">
              <input class="form-control" type="text" name="dictSort" th:field="*{dictSort}" required>
            </div>
          </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "sewage/sewageType";
		$("#form-sewageType-edit").validate({
      rules:{
        dictSort:{
            digits:true
        },
      },
			focusCleanup: true
		});
		
		function submitHandler() {
      if ($.validate.form()) {
        $.operate.save(prefix + "/edit", $('#form-sewageType-edit').serialize());
      }
    }
	</script>
</body>
</html>
